<?php
$this->breadcrumbs=array(
	'Pertanian'=>array('pertanian/index'),'Luas Tanam, Luas Panen, Produksi/Hektar Sayuran Menurut Kecamatan'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'Create', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('luastanamperkecamatan-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Luastanamperkecamatans</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'luastanamperkecamatan-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'ltpc_id',
		'ltpc_kec',
		'lptc_bm_tanam',
		'lptc_bm_panen',
		'lptc_bm_produksi',
		'lptc_bp_tanam',
		/*
		'lptc_bp_panen',
		'lptc_bp_produksi',
		'lptc_bd_tanam',
		'lptc_bd_panen',
		'lptc_bd_produksi',
		'lptc_kentang_tanam',
		'lptc_kentang_panen',
		'lptc_kentang_produksi',
		'lptc_kol_tanam',
		'lptc_kol_panen',
		'lptc_kol_produksi',
		'lptc_sawi_tanam',
		'lptc_sawi_panen',
		'lptc_sawi_produksi',
		'lptc_cabemerah_tanam',
		'lptc_cabemerah_panen',
		'lptc_cabemerah_produksi',
		'lptc_caberawit_tanam',
		'lptc_caberawit_panen',
		'lptc_caberawit_produksi',
		'lptc_tomat_tanam',
		'lptc_tomat_panen',
		'lptc_tomat_produksi',
		'lptc_terung_tanam',
		'lptc_terung_panen',
		'lptc_terung_produksi',
		'lptc_buncis_tanam',
		'lptc_buncis_panen',
		'lptc_buncis_produksi',
		'lptc_timun_tanam',
		'lptc_timun_panen',
		'lptc_timun_produksi',
		'lptc_kangkung_tanam',
		'lptc_kangkung_panen',
		'lptc_kangkung_produksi',
		'lptc_bayam_tanam',
		'lptc_bayam_panen',
		'lptc_bayam_produksi',
		'lptc_kacangmerah_tanam',
		'lptc_kacangmerah_panen',
		'lptc_kacangmerah_produksi',
		'lptc_kacangpanjang_tanam',
		'lptc_kacangpanjang_panen',
		'lptc_kajangpanjang_produksi',
		'lptc_labu_tanam',
		'lptc_labu_panen',
		'lptc_labu_produksi',
		'lptc_lobak_tanam',
		'lptc_lobak_panen',
		'lptc_lobak_produksi',
		'tahun',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
